﻿<MudDataGrid Items="_listItems" MultiSelection="false" @bind-SelectedItems="_selectionList">
    <Columns>
        <SelectColumn />
        <PropertyColumn Property="x => x.Name"/>
    </Columns>
</MudDataGrid>

@code {
    private List<Item> _listItems = [];
    private HashSet<Item> _selectionList = [];

    protected override void OnInitialized()
    {
        base.OnInitialized();

        _listItems =
        [
            new Item { Id = 0, Name = "Test1" },
            new Item { Id = 1, Name = "Test2" },
            new() { Id = 2, Name = "Test3" }
        ];
    }

    public class Item
    {
        public int Id { get; set; }

        public string Name { get; set; } = "";
    }
}